﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WsdShop.IService;
using WsdShop.Model;

namespace Admin.Controllers
{
    public class SystemSetController : BaseController
    {
        protected ISystemService systemservice;
        public SystemSetController(IUserInfoService s, ISystemService _systemservice) : base(s)
        {
            systemservice = _systemservice;
        }

        // GET: SystemSet
        [HttpGet]
        public ActionResult Index()
        {
            return View();
        }


        [HttpPost]
        public ActionResult SystemManage()
        {
            return Json(systemservice.SystemManage());
        }


        [HttpPost]
        public ActionResult KeyWordSave(SystemConfiguration model)
        {
            return Json(systemservice.KeyWordSave(model.Id, model.SearchKeywords, CurrentLoginUser.Id, model.StockWarning));
        }


    }
}